#pragma once
#include "StdAfx.h"

struct CAxisValue
{
    CString time;
    float value;
public:
    CAxisValue(const CString time, const float value)
    {
        this->time = time;
        this->value = value;
    }
};

struct CAxisSize
{
    float x;
    float y;

    CAxisSize(float x, float y)
    {
        this->x = x;
        this->y = y;
    }
};

class CAxisPoint
{
public:
    float x;
    float y;

public:
    CAxisPoint(const float x, const float y)
    {
        this->x = x;
        this->y = y;
    }

    CAxisPoint operator +(const CAxisSize &size) const
    {
        return CAxisPoint( x + size.x, y + size.y );
    }

    CAxisPoint operator -(const CAxisSize &size) const
    {
        return CAxisPoint( x - size.x, y - size.y );
    }
    CAxisPoint& operator =(const CAxisPoint &pt)
    {
        x = pt.x;
        y = pt.y;
        return *this;
    }
};

struct CCutLine
{
    int x;
    int v;

    CCutLine()
    {
    }

    CCutLine(const int x, const int v)
    {
        this->x = x;
        this->v = v;
    }

    bool operator ==( const CCutLine &rightSide )
    {
        if ( this->v == rightSide.v && this->x == rightSide.x )
            return true;
        else
            return false;
    }

    bool operator !=( const CCutLine &rightSide )
    {
        if ( this->v != rightSide.v || this->x != rightSide.x )
            return true;
        else
            return false;
    }
};
